package config.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@RefreshScope
@RestController
public class Provider9702Controller
{
    @Value("${controller.info}")
    private String configInfo;

    @Value("${controller.info2}")
    private String configInfo2;

    @GetMapping("/c1")
    public String c1()
    {
        return configInfo;
    }

    @GetMapping("/c2")
    public String c2()
    {
        return configInfo2;
    }
}
